﻿namespace Unity.Commons.Exceptions
{
    public enum ErrorCode
    {
        ValidationError = 400,
        PayloadTooLarge = 413,
        ServerError = 500,
        HttpConnectException = 521,
        HttpTimeoutException = 522,
        InternalHttpException = 531,
        InternalRestClientError = 561,
        NoResponseFromServer = 562,
        NoFoundResponseHandler = 563,

        SolaceError = 570,
        SolaceConnection = 571,

        KafkaError = 581,
        KafkaConfigurationError = 582,

        General = 600,
        Internal = 601,
        DuplicationCheckError = 602,
        Configuration = 603,
        ConfigurationBadKeystore = 604,
        Fingerprint = 605,
        MBean = 606,
        Liveness = 607,
        Mail = 611,
        NoImplementation = 613,
        IllegalArgument = 614,

        MongoDbError = 641,
        MongoDbConfigurationError = 642,

        EemsAuthorizationError = 661,
        EemeConfigurationError = 662,

        CitiFederationBadResponse = 681,
        CitiFederationConfigurationError = 682,
        CitiFederationError = 683,

        TimeDrift = 700,
        BadTimeout = 701,
        ForceOfflineWasCalled = 702,
        CanNotConnectToStreaming = 703,
        CanNotConnectToFallback = 704,
        CloseThreadResource = 706,
        SingleThreadAsyncRun = 707,
        RestoreConnectionFail = 708,
        StreamBufferFull = 709,
        AllBufferFull = 710,
        TimeReferenceConnectionError = 711,
        InvalidKeystore = 712,
        EemsCsiIdNotPermitted = 713,
        ConnectingError = 714,
        CloseError = 715,

        CreateTopic = 741,
        DeleteTopic = 742,
        SendMessage = 743,
        RequiredEnvMissed = 744,
        Defaults = 745,
        SslContext = 746,
        CleanupTopic = 747,

        SubscriberConnection = 761,

        ClientInitializationError = 781,
        ClientReadSignatureError = 782,
        ClientNotValidSignatureError = 783,
        ClientReadMetadataError = 784,
        ClientExistsFileOverwriteDataError = 785,
        ClientExistsFileAccessError = 786,
        ClientCurrentBufferIsUsedError = 787,
        ClientMakeBufferFileError = 788,
        ClientCopyBufferFileError = 789,
        ClientBackupBufferFileError = 790,
        ClientVerifyFileContentError = 791,
        ClientNoMoreGenerated = 792,

        ConnectToTimeReference = 800
    }
}
